package com.javasm.duanju.controller;

import com.javasm.duanju.dto.VideoUploadDTO;
import com.javasm.duanju.entity.DraftVideoItem;
import com.javasm.duanju.service.DraftVideoItemService;
import com.javasm.duanju.service.DraftVideoService;
import commom.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.ArrayList;
import java.util.List;


/**
 * (DraftVideoItem)表控制层
 *
 * @author makejava
 * @since 2025-02-26 19:30:09
 */
@RestController
@RequestMapping("/draftVideoItem")
public class DraftVideoItemController{
    @Autowired
    DraftVideoItemService draftVideoItemService;

//    添加短剧在线播放地址
    @PostMapping("/addVideo")
    public AjaxResult addVideo(@RequestBody List<VideoUploadDTO> videoUploadDTO){
        draftVideoItemService.addVideo(videoUploadDTO);
        return AjaxResult.ok();
    }

}

